package com.mall.application.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @className: com.mall.application.module-> ApplicationVO
 * @description: 应用对象VO
 * @author: wuyijie
 * @createDate: 2021/6/8 22:07
 */
@Data
@ApiModel(value="Application对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class ApplicationVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "应用名称")
    private String name;

    @ApiModelProperty(value = "应用的联系email")
    private String contactEmail;

    @ApiModelProperty(value = "服务调用KEY")
    private String accessKey;

    @ApiModelProperty(value = "服务调用SECRET")
    private String accessSecret;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "状态。0 已删除，1 在用，2 暂用")
    private Integer status;

}
